package com.java.basis.thread.n3;

import lombok.extern.slf4j.Slf4j;

/**
 * 演示多个线程交替执行
 *
 * @author wangning
 * @create 2022-01-13 17:00
 */
@Slf4j(topic = "c.MultiThreadTest")
public class MultiThreadTest {
	public static void main(String[] args) {
		new Thread(() -> {
			while (true) {
				log.debug("running");
			}
		}, "t1").start();
		new Thread(() -> {
			while (true) {
				log.debug("running");
			}
		}, "t2").start();

	}
}
